package com.service.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.dao.query.OrderParam;
import com.service.dao.model.OrderProductOther;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface OrderProductOtherMapper extends BaseMapper<OrderProductOther> {

    BigDecimal getGiftOrderTotalMoney(@Param("memberId") Integer memberId, @Param("orderStatus") List<Integer> orderStatus);

    BigDecimal getSomedayGiftOrderTotalMoney(@Param("memberId") Integer memberId,
                                             @Param("orderStatus") List<Integer> orderStatus,
                                             @Param("startTime")Date startTime,
                                             @Param("endTime") Date endTime);

    List<OrderProductOther> listOrderByMemberAccount(@Param("orderParam") OrderParam orderParam);

}